package com.molichuxing.services.infrastructure.service;

import java.util.Map;

import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.infrastructure.dto.request.create.AlipayCreateDto;
import com.molichuxing.services.infrastructure.dto.response.AlipayResultDto;
import com.molichuxing.services.infrastructure.dto.response.PrepaymentDto;

public interface AlipayService extends RootService {

	/**
	 * 统一下单(预支付单)
	 * 
	 * @param createDto
	 * @return
	 * @throws Exception
	 */
	public PrepaymentDto orderPay(AlipayCreateDto createDto) throws Exception;

	/**
	 * 支付结果异步通知解析
	 * 
	 * @param notifyParam
	 * @throws Exception
	 */
	public AlipayResultDto notifyPay(Map<String, String> notifyParam) throws Exception;
}
